package com.sc.common.utils;

import java.util.Random;

/***
 * 生成商品ID
 */
public class IDUtil {
    public static long genItemId(){
        long millis = System.currentTimeMillis();
        Random random = new Random();
        int end2 = random.nextInt(99);
        String str = millis+String.format("%02d",end2);
        long id = new Long(str);
        return id;
    }
}
